package cn.iutils.faq.entity;

import cn.iutils.common.Page;
import cn.iutils.sys.entity.DataEntity;

/**
* 问题表
* @author iutils.cn
* @version 1.0
*/
public class Questions extends DataEntity<Questions> {

    private static final long serialVersionUID = 1L;

    private String title;//标题
    private String content;//问题
    private int views=0;//查看数
    private Boolean hide=Boolean.FALSE;//匿名提问
    private String device;//设备

    private Page<Answers> pageAnswers;//回答分页列表

    public Questions() {
        super();
    }
    public Questions(String id){
        super(id);
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getViews() {
        return views;
    }

    public void setViews(int views) {
        this.views = views;
    }

    public Boolean getHide() {
        return hide;
    }

    public void setHide(Boolean hide) {
        this.hide = hide;
    }

    public String getDevice() {
        return device;
    }

    public void setDevice(String device) {
        this.device = device;
    }

    public Page<Answers> getPageAnswers() {
        return pageAnswers;
    }

    public void setPageAnswers(Page<Answers> pageAnswers) {
        this.pageAnswers = pageAnswers;
    }
}
